<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Text</title>
    <style>
        html, body, .main-container {
            height: 100%;
            overflow: hidden;
            margin: 0;
            background-color: #555555;
			font-size:40px;
			color:#ffffff;
			line-height: 60px;
			display:table;
        }
		.main-container{
			vertical-align:middle;  
			display:table-cell;  
			text-indent: 2em;
			padding: 10px;
		}

    </style>
</head>
<body>
<div class="main-container" id="textid"></div>
</body>
<script type="text/javascript">
    function findGetParameter(parameterName) {
        var result = null,
            tmp = [];
        var items = location.search.substr(1).split("&");
        for (var index = 0; index < items.length; index++) {
            tmp = items[index].split("=");
            if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]);
        }
        return result;
    }

    var txt = findGetParameter("txt");
	var txtcolor = findGetParameter("txtcolor");
	var bgcolor = findGetParameter("bgcolor");
    var source = document.getElementById("textid");
    source.innerHTML = txt ? txt : "text";
	if(txtcolor)
		source.style.color=txtcolor;
	if(bgcolor)
		source.style.backgroundColor=bgcolor;
</script>
</html>